﻿package uiresource
{
    import morn.core.components.*;

    public class ChatUI extends View
    {
        public var mPanel:Box;
        public var fucklayer:Box;
        public var mBG:Image;
        public var mInputPanel:Image;
        public var mBtnSelect:Button;
        public var mBtnSend:Button;
        public var mBtnAll:Button;
        public var mBtnWorld:Button;
        public var mBtnStage:Button;
        public var mBtnShop:Button;
        public var mBtnTeam:Button;
        public var mBtnUnion:Button;
        public var mBtnPrivate:Button;
        public var mBtnSystem:Button;
        public var mBtnPos:Button;
        public var panel_chat:Panel;
        public var mChatInput:TextInput;
        public var btn_face:Button;
        public var fuckScale:Button;
        protected var uiXML:XML;

        public function ChatUI()
        {
            this.uiXML = <View>
n	t	t	t  <Box var=""mPanel"" x=""0"" y=""37"">
n	t	t	t    <Box var=""fucklayer"" y=""1"">
n	t	t	t      <Image url=""png.common.s9_taskbg"" sizeGrid=""8,9,8,9"" width=""313"" height=""310"" var=""mBG""/>
n	t	t	t      <Image url=""png.common.s9_inputbase"" y=""165"" sizeGrid=""8, 9, 8, 9"" height=""28"" width=""313"" var=""mInputPanel"" x=""0""/>
n	t	t	t      <Button label=""世界"" skin=""png.common.btn_red"" x=""1"" y=""167"" var=""mBtnSelect"" labelStroke=""0x0"" labelColors=""0xb9774b,0xb9774b,0xb9774b,0xb9774b"" height=""24""/>
n	t	t	t      <Button label=""发送"" skin=""png.common.btn_red"" x=""268"" y=""167"" var=""mBtnSend"" labelStroke=""0x0"" labelColors=""0xb9774b,0xb9774b,0xb9774b,0xb9774b"" height=""24""/>
n	t	t	t      <Box x=""17"" y=""140"">
n	t	t	t        <Button label=""综合"" skin=""png.common.btn_yellow"" labelStroke=""0x0"" labelColors=""0xb9774b,0xb9774b,0xb9774b,0xb9774b"" var=""mBtnAll"" y=""1"" width=""34"" height=""24""/>
n	t	t	t        <Button label=""世界"" skin=""png.common.btn_yellow"" labelStroke=""0x0"" labelColors=""0xb9774b,0xb9774b,0xb9774b,0xb9774b"" var=""mBtnWorld"" x=""34"" height=""24"" y=""1""/>
n	t	t	t        <Button label=""普通"" skin=""png.common.btn_yellow"" labelStroke=""0x0"" labelColors=""0xb9774b,0xb9774b,0xb9774b,0xb9774b"" var=""mBtnStage"" x=""68"" y=""1"" height=""24""/>
n	t	t	t        <Button label=""商贸"" skin=""png.common.btn_yellow"" labelStroke=""0x0"" labelColors=""0xb9774b,0xb9774b,0xb9774b,0xb9774b"" var=""mBtnShop"" x=""237"" y=""1"" height=""24"" width=""34""/>
n	t	t	t        <Button label=""队伍"" skin=""png.common.btn_yellow"" labelStroke=""0x0"" labelColors=""0xb9774b,0xb9774b,0xb9774b,0xb9774b"" var=""mBtnTeam"" x=""203"" y=""1"" height=""24""/>
n	t	t	t        <Button label=""行会"" skin=""png.common.btn_yellow"" labelStroke=""0x0"" labelColors=""0xb9774b,0xb9774b,0xb9774b,0xb9774b"" var=""mBtnUnion"" x=""135"" y=""1"" height=""24""/>
n	t	t	t        <Button label=""私聊"" skin=""png.common.btn_yellow"" labelStroke=""0x0"" labelColors=""0xb9774b,0xb9774b,0xb9774b,0xb9774b"" var=""mBtnPrivate"" x=""169"" y=""1"" height=""24""/>
n	t	t	t        <Button label=""BOSS"" skin=""png.common.btn_yellow"" labelStroke=""0x0"" labelColors=""0xb9774b,0xb9774b,0xb9774b,0xb9774b"" var=""mBtnSystem"" x=""101"" y=""1"" height=""24""/>
n	t	t	t        <Button skin=""png.common.btn_qticon"" labelStroke=""0x0"" var=""mBtnPos"" x=""271"" width=""24"" height=""25"" sizeGrid=""10,5,10,5""/>
n	t	t	t        <UrlImage url=""cs2_mapasset/haha.png"" x=""275"" y=""2"" scaleX=""0.6"" scaleY=""0.6"" smoothing=""true"" width=""28"" height=""37"" mouseChildren=""false"" mouseEnabled=""false""/>
n	t	t	t      </Box>
n	t	t	t    </Box>
n	t	t	t    <Panel width=""312"" height=""145"" var=""panel_chat"" x=""1"" vScrollBarSkin=""png.common.vscroll"" barPosition=""true"" offsetV=""22""/>
n	t	t	t  </Box>
n	t	t	t  <TextInput text=""请输入聊天内容，按回车键发送"" skin=""png.common.textinput"" x=""47"" y=""207"" var=""mChatInput"" color=""0xe1a022"" stroke=""0x0"" width=""197"" height=""22"" maxChars=""50"" size=""13""/>
n	t	t	t  <Button skin=""png.common.btn_face"" x=""245"" y=""209"" var=""btn_face""/>
n	t	t	t  <Button skin=""png.common.btn_scale"" x=""300"" y=""38"" var=""fuckScale""/>
n	t	t	t</View>")("<View>
			  <Box var="mPanel" x="0" y="37">
			    <Box var="fucklayer" y="1">
			      <Image url="png.common.s9_taskbg" sizeGrid="8,9,8,9" width="313" height="310" var="mBG"/>
			      <Image url="png.common.s9_inputbase" y="165" sizeGrid="8, 9, 8, 9" height="28" width="313" var="mInputPanel" x="0"/>
			      <Button label="世界" skin="png.common.btn_red" x="1" y="167" var="mBtnSelect" labelStroke="0x0" labelColors="0xb9774b,0xb9774b,0xb9774b,0xb9774b" height="24"/>
			      <Button label="发送\" skin="png.common.btn_red" x="268" y="167" var="mBtnSend" labelStroke="0x0" labelColors="0xb9774b,0xb9774b,0xb9774b,0xb9774b" height="24"/>
			      <Box x="17" y="140">
			        <Button label="综合" skin="png.common.btn_yellow" labelStroke="0x0" labelColors="0xb9774b,0xb9774b,0xb9774b,0xb9774b" var="mBtnAll" y="1" width="34" height="24"/>
			        <Button label="世界" skin="png.common.btn_yellow" labelStroke="0x0" labelColors="0xb9774b,0xb9774b,0xb9774b,0xb9774b" var="mBtnWorld" x="34" height="24" y="1"/>
			        <Button label="普通\" skin="png.common.btn_yellow" labelStroke="0x0" labelColors="0xb9774b,0xb9774b,0xb9774b,0xb9774b" var="mBtnStage" x="68" y="1" height="24"/>
			        <Button label="商贸" skin="png.common.btn_yellow" labelStroke="0x0" labelColors="0xb9774b,0xb9774b,0xb9774b,0xb9774b" var="mBtnShop" x="237" y="1" height="24" width="34"/>
			        <Button label="队伍" skin="png.common.btn_yellow" labelStroke="0x0" labelColors="0xb9774b,0xb9774b,0xb9774b,0xb9774b" var="mBtnTeam" x="203" y="1" height="24"/>
			        <Button label="行会" skin="png.common.btn_yellow" labelStroke="0x0" labelColors="0xb9774b,0xb9774b,0xb9774b,0xb9774b" var="mBtnUnion" x="135" y="1" height="24"/>
			        <Button label="私聊" skin="png.common.btn_yellow" labelStroke="0x0" labelColors="0xb9774b,0xb9774b,0xb9774b,0xb9774b" var="mBtnPrivate" x="169" y="1" height="24"/>
			        <Button label="BOSS" skin="png.common.btn_yellow" labelStroke="0x0" labelColors="0xb9774b,0xb9774b,0xb9774b,0xb9774b" var="mBtnSystem" x="101" y="1" height="24"/>
			        <Button skin="png.common.btn_qticon" labelStroke="0x0" var="mBtnPos" x="271" width="24" height="25" sizeGrid="10,5,10,5"/>
			        <UrlImage url="cs2_mapasset/haha.png" x="275" y="2" scaleX="0.6" scaleY="0.6" smoothing="true" width="28" height="37" mouseChildren="false" mouseEnabled="false"/>
			      </Box>
			    </Box>
			    <Panel width="312" height="145" var="panel_chat" x="1" vScrollBarSkin="png.common.vscroll" barPosition="true" offsetV="22"/>
			  </Box>
			  <TextInput text="请输入聊天内容，按回车键发送\" skin="png.common.textinput" x="47" y="207" var="mChatInput" color="0xe1a022" stroke="0x0" width="197" height="22" maxChars="50" size="13"/>
			  <Button skin="png.common.btn_face" x="245" y="209" var="btn_face"/>
			  <Button skin="png.common.btn_scale" x="300" y="38" var="fuckScale"/>
			</View>;
            return;
        }// end function

        override protected function createChildren() : void
        {
            createView(this.uiXML);
            return;
        }// end function

    }
}
